<?php
/**
 * Created by PhpStorm.
 * User: xutao
 * Date: 2018/8/3
 * Time: 18:27
 */
namespace app\common\validate;
//banner验证器
use think\Validate;

class BannerValidate extends Validate{
    protected $rule = [
        'title'=>'require',
        'src' => 'require',
    ];
    protected $message = [
        'title.require'=>'名称不能为空',
        'src.require'=>'图片不能为空'
    ];
}